FROM centos:centos7 as base

MAINTAINER "Student414<805447391@qq.com>"

WORKDIR /

VOLUME /www

EXPOSE 9000/tcp

RUN 	rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
	&& rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm \
	&& yum install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml -y --nogpgcheck
	
COPY ./www.conf /etc/php-fpm.d/

CMD ["/usr/sbin/php-fpm", "-F", "-R"]
